package com.huayi.datagovernance.entity;

import lombok.Data;

import java.util.Date;

/**
 *
 * 映射从ISC系统导出的isc_user_locext表，即用户表
 * 保留和ISC系统一模一样的字段、注解、顺序
 */
@Data
public class ISCUserEntity {
//    public class ISCUserEntity extends BaseEntity implements UserDetails {

    private static final long serialVersionUID = 8362366824183708925L;
    private String iscId;//ISC人员主键
    private String rymc;//人员姓名
    private String ssbmid;//所属部门ID
    private String orgno;//单位编号
    private Date cjsj;//创建时间
    private Date tbsj;//同步时间
    private Date cxsj;//撤销时间
    private Integer sfyx;//数据有效性
    private String ryzc;//人员职称
    private String rygw;//人员岗位
    private String ryzy;//人员专业
    private String ryxb;//人员性别
    private String nxdh;//内线电话
    private String id;//ID（原表中此字段全部为空）
    private String ssdwid;//所属单位ID
    private String loginname;//人员登录名
    private String password;//密码
    private String oldid;//预留ID1
    private String ssddjgid;//所属调度组织机构ID
    private String ssddjgmc;//所属调度组织机构


    //20200415 因开发需求，新增以下字段
    private String gh;//工号
    private String lxdh;//联系电话
    private String email;//E-MAIL
    private String csny;//出生年月
    private String xl;//学历
    private Integer showOrder;//显示排序
    private Integer sfcx;//是否撤销：0-否，1-是

    //20200730 因开发需求，新增以下字段
    private String sbzr;//设备主人
    private String sbzrmc;//设备主人
    private String ssds;//所属地市
    private String ssdsmc;//所属地市名称
    private String yxdw;//运行单位
    private String yxdwmc;//运行单位名称
    private String whbz;//维护班组
    private String whbzmc;//维护班组名称

    private String macIp;//mac地址

    public Integer getSfcx() {
        return sfcx;
    }

    public void setSfcx(Integer sfcx) {
        this.sfcx = sfcx;
    }

    public String getGh() {
        return gh;
    }

    public void setGh(String gh) {
        this.gh = gh;
    }

    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getOrgno() {
        return orgno;
    }

    public void setOrgno(String orgno) {
        this.orgno = orgno;
    }

    public String getCsny() {
        return csny;
    }

    public void setCsny(String csny) {
        this.csny = csny;
    }

    public String getXl() {
        return xl;
    }

    public void setXl(String xl) {
        this.xl = xl;
    }

    public Integer getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }


    @Override
    public boolean equals(Object obj) {
        return obj instanceof ISCUserEntity ?this.loginname.equals(((ISCUserEntity)obj).loginname):false;
    }

    @Override
    public int hashCode() {
        return this.loginname.hashCode();
    }

    public String getIscId() {
        return iscId;
    }

    public void setIscId(String iscId) {
        this.iscId = iscId;
    }

    public String getRymc() {
        return rymc;
    }

    public void setRymc(String rymc) {
        this.rymc = rymc;
    }

    public String getSsbmid() {
        return ssbmid;
    }

    public void setSsbmid(String ssbmid) {
        this.ssbmid = ssbmid;
    }

    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    public Date getTbsj() {
        return tbsj;
    }

    public void setTbsj(Date tbsj) {
        this.tbsj = tbsj;
    }

    public Date getCxsj() {
        return cxsj;
    }

    public void setCxsj(Date cxsj) {
        this.cxsj = cxsj;
    }

    public Integer getSfyx() {
        return sfyx;
    }

    public void setSfyx(Integer sfyx) {
        this.sfyx = sfyx;
    }

    public String getRyzc() {
        return ryzc;
    }

    public void setRyzc(String ryzc) {
        this.ryzc = ryzc;
    }

    public String getRygw() {
        return rygw;
    }

    public void setRygw(String rygw) {
        this.rygw = rygw;
    }

    public String getRyzy() {
        return ryzy;
    }

    public void setRyzy(String ryzy) {
        this.ryzy = ryzy;
    }

    public String getRyxb() {
        return ryxb;
    }

    public void setRyxb(String ryxb) {
        this.ryxb = ryxb;
    }

    public String getNxdh() {
        return nxdh;
    }

    public void setNxdh(String nxdh) {
        this.nxdh = nxdh;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSsdwid() {
        return ssdwid;
    }

    public void setSsdwid(String ssdwid) {
        this.ssdwid = ssdwid;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOldid() {
        return oldid;
    }

    public void setOldid(String oldid) {
        this.oldid = oldid;
    }

    public String getSsddjgid() {
        return ssddjgid;
    }

    public void setSsddjgid(String ssddjgid) {
        this.ssddjgid = ssddjgid;
    }

    public String getSsddjgmc() {
        return ssddjgmc;
    }

    public void setSsddjgmc(String ssddjgmc) {
        this.ssddjgmc = ssddjgmc;
    }

    public String getSbzr() {
        return sbzr;
    }

    public void setSbzr(String sbzr) {
        this.sbzr = sbzr;
    }

    public String getSbzrmc() {
        return sbzrmc;
    }

    public void setSbzrmc(String sbzrmc) {
        this.sbzrmc = sbzrmc;
    }

    public String getSsds() {
        return ssds;
    }

    public void setSsds(String ssds) {
        this.ssds = ssds;
    }

    public String getSsdsmc() {
        return ssdsmc;
    }

    public void setSsdsmc(String ssdsmc) {
        this.ssdsmc = ssdsmc;
    }

    public String getYxdw() {
        return yxdw;
    }

    public void setYxdw(String yxdw) {
        this.yxdw = yxdw;
    }

    public String getYxdwmc() {
        return yxdwmc;
    }

    public void setYxdwmc(String yxdwmc) {
        this.yxdwmc = yxdwmc;
    }

    public String getWhbz() {
        return whbz;
    }

    public void setWhbz(String whbz) {
        this.whbz = whbz;
    }

    public String getWhbzmc() {
        return whbzmc;
    }

    public void setWhbzmc(String whbzmc) {
        this.whbzmc = whbzmc;
    }

    public String getMacIp() {
        return macIp;
    }

    public void setMacIp(String macIp) {
        this.macIp = macIp;
    }
}
